package cloud.seri.iot.manager.service.example

import cloud.seri.iot.manager.domain.Product
import org.springframework.data.domain.ExampleMatcher

data class ProductExample(
    var productName: String? = null
)

fun Product.exampleMatcher(): ExampleMatcher
{
    return ExampleMatcher.matchingAny()
        .withMatcher("productName") {
            it.startsWith().ignoreCase()
        }.withIgnorePaths("devices")
}
